package at.ac.tuwien.infosys.aic11.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = "money")
@XmlAccessorType(XmlAccessType.NONE)
public class Money {
	
	@XmlElement(name="amount", required=true)
	private long amount;
	
	//disbursement service expects element name in this style
	@XmlElement(name="currencyCode", required=true)
	private String currencyCode;

	
	public Money(){}
	
	public Money(long amount, String currencyCode){
		this.amount=amount;
		this.currencyCode=currencyCode;
	}

	
	public long getAmount() {
		return amount;
	}
	public void setAmount(long amount) {
		this.amount = amount;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}

	public String toString() {
		return amount + " " + currencyCode;
	}
	
	

}
